package com.bjpowernode.crm.workbench.service;

import com.bjpowernode.crm.workbench.domain.Contacts;
import com.bjpowernode.crm.workbench.domain.FunnelVO;
import com.bjpowernode.crm.workbench.domain.Tran;

import java.util.List;
import java.util.Map;

public interface TranService {

    //保存创建的交易
    void saveCreateTran(Map<String,Object> map);

    //根据id查询交易的明细信息
    Tran queryTranForDetailById(String id);

    //根据条件查询交易的列表
    List<Tran> queryTranByConditionForPage(Map<String,Object> map);

    //根据条件查询交易的总条数
    int queryCountOfTranByCondition(Map<String,Object> map);

    //查询交易表中各个阶段的数据量
    List<FunnelVO> queryCountOfTranGroupByStage();
}
